package com.boruan.qq.zxgylibrary.service.model;

/**
 * Created by 崔琦 on 2019/9/5.
 * des: 获取结算默认地址实体
 */

public class SettleDefaultAddressBean {

    /**
     * data : {"address":"","buyerid":0,"contactperson":"","contactphone":"","distance":0,"freightFee":0,"fulladdress":"","id":0,"isdefault":0,"postalcode":"","yn":0}
     * errorCode :
     * message :
     * success : true
     */

    private ResultBean result;
    private String code;
    private String message;
    private boolean success;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean data) {
        this.result = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public static class ResultBean {
        /**
         * address :
         * buyerid : 0
         * contactperson :
         * contactphone :
         * distance : 0
         * freightFee : 0
         * fulladdress :
         * id : 0
         * isdefault : 0
         * postalcode :
         * yn : 0
         */

        private String address;
        private int buyerid;
        private String contactperson;
        private String contactphone;
        private int distance;
        private int freightFee;
        private String fulladdress;
        private int id;
        private int isdefault;
        private String postalcode;
        private int yn;
        private int medicalPayFlag; // 是否支持余额支付，0不支持，1支持

        public int getMedicalPayFlag() {
            return medicalPayFlag;
        }

        public void setMedicalPayFlag(int medicalPayFlag) {
            this.medicalPayFlag = medicalPayFlag;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public int getBuyerid() {
            return buyerid;
        }

        public void setBuyerid(int buyerid) {
            this.buyerid = buyerid;
        }

        public String getContactperson() {
            return contactperson;
        }

        public void setContactperson(String contactperson) {
            this.contactperson = contactperson;
        }

        public String getContactphone() {
            return contactphone;
        }

        public void setContactphone(String contactphone) {
            this.contactphone = contactphone;
        }

        public int getDistance() {
            return distance;
        }

        public void setDistance(int distance) {
            this.distance = distance;
        }

        public int getFreightFee() {
            return freightFee;
        }

        public void setFreightFee(int freightFee) {
            this.freightFee = freightFee;
        }

        public String getFulladdress() {
            return fulladdress;
        }

        public void setFulladdress(String fulladdress) {
            this.fulladdress = fulladdress;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getIsdefault() {
            return isdefault;
        }

        public void setIsdefault(int isdefault) {
            this.isdefault = isdefault;
        }

        public String getPostalcode() {
            return postalcode;
        }

        public void setPostalcode(String postalcode) {
            this.postalcode = postalcode;
        }

        public int getYn() {
            return yn;
        }

        public void setYn(int yn) {
            this.yn = yn;
        }
    }
}
